<div class="cashDailies form">
    <?php echo $this->Form->create('CashDaily'); ?>
    <fieldset>
        <h2><?php echo __('Apertura de Caja'); ?></h2>
        <?php
        echo $this->Form->input('user_id', array('label' => 'Cajero', 'size' => sizeof($users), 'class' => 'selectCaja'));
        echo $this->Form->input('initial_cash', array('label' => 'Plata Inicial ($)'));
        echo $this->Form->input('start_date', array('label' => 'Fecha de Apertura', 'dateFormat' => 'DMY'));
        ?>
    </fieldset>
    <?php echo $this->Form->end(__('Guardar')); ?>
</div>

<!--Show General Menu-->
<?php echo $this->element('menues/general') ?>

<script>
    $(document).ready(function() {
        
        $("#CashDailyInitialCash").numeric();
        $("input[type=submit]").attr("disabled", "disabled");
        
        $("#CashDailyUserId").click(function(){
          $("input[type=submit]").removeAttr("disabled");    
        });
        
        
            
            
    })
</script>